#!/bin/bash
python3 -m PyInstaller --noconfirm --onedir --windowed --name sPixels ./main.py
rm -r pkg
mkdir pkg
cp -r dist/sPixels pkg
mv pkg/sPixels pkg/dist
cp installer/config.py pkg
cp installer/built_installer.py pkg/installer.py
cp icon.png pkg/icon.png
tar -czvf dist_pkg.tar.gz pkg
rm -r build
rm -r dist
rm sPixels.spec
rm -r pkg
